package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class Material {
    private int meterial_id;
    private String title;
    private String message;
    private LocalDateTime create_time;
    private LocalDateTime update_time;
    private MedicalPolicy medicalPolicy;

    public Material() {
    }

    public Material(int meterial_id, String title, String message, LocalDateTime create_time, LocalDateTime update_time, MedicalPolicy medicalPolicy) {
        this.meterial_id = meterial_id;
        this.title = title;
        this.message = message;
        this.create_time = create_time;
        this.update_time = update_time;
        this.medicalPolicy = medicalPolicy;
    }

    public int getMeterial_id() {
        return meterial_id;
    }

    public void setMeterial_id(int meterial_id) {
        this.meterial_id = meterial_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    public LocalDateTime getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(LocalDateTime update_time) {
        this.update_time = update_time;
    }

    public MedicalPolicy getMedicalPolicy() {
        return medicalPolicy;
    }

    public void setMedicalPolicy(MedicalPolicy medicalPolicy) {
        this.medicalPolicy = medicalPolicy;
    }

    @Override
    public String toString() {
        return "Material{" +
                "meterial_id=" + meterial_id +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", medicalPolicy=" + medicalPolicy +
                '}';
    }
} 